import os

if(os.path.exists("VAV_All_1.0.bin")):
    os.remove("VAV_All_1.0.bin");

f_out = open("VAV_All_1.0.bin","ab+");

f_out.write(open("./loader/VAV_All_1.0.bin", "rb").read())
fsize = os.path.getsize("./loader/VAV_All_1.0.bin")

needsize = 64*1024 -fsize
data="0"*needsize

f_out.write(data.encode("utf-8"))
f_out.write(open("./app/VAV_All_1.0.bin", "rb").read())
f_out.close()
